package com.treasure.service.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TGainTtatisticsExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TGainTtatisticsExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainIsNull() {
            addCriterion("apply_card_gain is null");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainIsNotNull() {
            addCriterion("apply_card_gain is not null");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainEqualTo(Long value) {
            addCriterion("apply_card_gain =", value, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainNotEqualTo(Long value) {
            addCriterion("apply_card_gain <>", value, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainGreaterThan(Long value) {
            addCriterion("apply_card_gain >", value, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainGreaterThanOrEqualTo(Long value) {
            addCriterion("apply_card_gain >=", value, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainLessThan(Long value) {
            addCriterion("apply_card_gain <", value, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainLessThanOrEqualTo(Long value) {
            addCriterion("apply_card_gain <=", value, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainIn(List<Long> values) {
            addCriterion("apply_card_gain in", values, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainNotIn(List<Long> values) {
            addCriterion("apply_card_gain not in", values, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainBetween(Long value1, Long value2) {
            addCriterion("apply_card_gain between", value1, value2, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andApplyCardGainNotBetween(Long value1, Long value2) {
            addCriterion("apply_card_gain not between", value1, value2, "applyCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainIsNull() {
            addCriterion("invite_card_gain is null");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainIsNotNull() {
            addCriterion("invite_card_gain is not null");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainEqualTo(Long value) {
            addCriterion("invite_card_gain =", value, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainNotEqualTo(Long value) {
            addCriterion("invite_card_gain <>", value, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainGreaterThan(Long value) {
            addCriterion("invite_card_gain >", value, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainGreaterThanOrEqualTo(Long value) {
            addCriterion("invite_card_gain >=", value, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainLessThan(Long value) {
            addCriterion("invite_card_gain <", value, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainLessThanOrEqualTo(Long value) {
            addCriterion("invite_card_gain <=", value, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainIn(List<Long> values) {
            addCriterion("invite_card_gain in", values, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainNotIn(List<Long> values) {
            addCriterion("invite_card_gain not in", values, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainBetween(Long value1, Long value2) {
            addCriterion("invite_card_gain between", value1, value2, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteCardGainNotBetween(Long value1, Long value2) {
            addCriterion("invite_card_gain not between", value1, value2, "inviteCardGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainIsNull() {
            addCriterion("invite_vip_gain is null");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainIsNotNull() {
            addCriterion("invite_vip_gain is not null");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainEqualTo(Long value) {
            addCriterion("invite_vip_gain =", value, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainNotEqualTo(Long value) {
            addCriterion("invite_vip_gain <>", value, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainGreaterThan(Long value) {
            addCriterion("invite_vip_gain >", value, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainGreaterThanOrEqualTo(Long value) {
            addCriterion("invite_vip_gain >=", value, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainLessThan(Long value) {
            addCriterion("invite_vip_gain <", value, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainLessThanOrEqualTo(Long value) {
            addCriterion("invite_vip_gain <=", value, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainIn(List<Long> values) {
            addCriterion("invite_vip_gain in", values, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainNotIn(List<Long> values) {
            addCriterion("invite_vip_gain not in", values, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainBetween(Long value1, Long value2) {
            addCriterion("invite_vip_gain between", value1, value2, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andInviteVipGainNotBetween(Long value1, Long value2) {
            addCriterion("invite_vip_gain not between", value1, value2, "inviteVipGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainIsNull() {
            addCriterion("share_card_gain is null");
            return (Criteria) this;
        }

        public Criteria andShareCardGainIsNotNull() {
            addCriterion("share_card_gain is not null");
            return (Criteria) this;
        }

        public Criteria andShareCardGainEqualTo(Long value) {
            addCriterion("share_card_gain =", value, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainNotEqualTo(Long value) {
            addCriterion("share_card_gain <>", value, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainGreaterThan(Long value) {
            addCriterion("share_card_gain >", value, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainGreaterThanOrEqualTo(Long value) {
            addCriterion("share_card_gain >=", value, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainLessThan(Long value) {
            addCriterion("share_card_gain <", value, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainLessThanOrEqualTo(Long value) {
            addCriterion("share_card_gain <=", value, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainIn(List<Long> values) {
            addCriterion("share_card_gain in", values, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainNotIn(List<Long> values) {
            addCriterion("share_card_gain not in", values, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainBetween(Long value1, Long value2) {
            addCriterion("share_card_gain between", value1, value2, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andShareCardGainNotBetween(Long value1, Long value2) {
            addCriterion("share_card_gain not between", value1, value2, "shareCardGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainIsNull() {
            addCriterion("team_gain is null");
            return (Criteria) this;
        }

        public Criteria andTeamGainIsNotNull() {
            addCriterion("team_gain is not null");
            return (Criteria) this;
        }

        public Criteria andTeamGainEqualTo(Long value) {
            addCriterion("team_gain =", value, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainNotEqualTo(Long value) {
            addCriterion("team_gain <>", value, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainGreaterThan(Long value) {
            addCriterion("team_gain >", value, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainGreaterThanOrEqualTo(Long value) {
            addCriterion("team_gain >=", value, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainLessThan(Long value) {
            addCriterion("team_gain <", value, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainLessThanOrEqualTo(Long value) {
            addCriterion("team_gain <=", value, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainIn(List<Long> values) {
            addCriterion("team_gain in", values, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainNotIn(List<Long> values) {
            addCriterion("team_gain not in", values, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainBetween(Long value1, Long value2) {
            addCriterion("team_gain between", value1, value2, "teamGain");
            return (Criteria) this;
        }

        public Criteria andTeamGainNotBetween(Long value1, Long value2) {
            addCriterion("team_gain not between", value1, value2, "teamGain");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Long value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Long value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Long value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Long value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Long value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Long value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Long> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Long> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Long value1, Long value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Long value1, Long value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andThatDayIsNull() {
            addCriterion("that_day is null");
            return (Criteria) this;
        }

        public Criteria andThatDayIsNotNull() {
            addCriterion("that_day is not null");
            return (Criteria) this;
        }

        public Criteria andThatDayEqualTo(Long value) {
            addCriterion("that_day =", value, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayNotEqualTo(Long value) {
            addCriterion("that_day <>", value, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayGreaterThan(Long value) {
            addCriterion("that_day >", value, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayGreaterThanOrEqualTo(Long value) {
            addCriterion("that_day >=", value, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayLessThan(Long value) {
            addCriterion("that_day <", value, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayLessThanOrEqualTo(Long value) {
            addCriterion("that_day <=", value, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayIn(List<Long> values) {
            addCriterion("that_day in", values, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayNotIn(List<Long> values) {
            addCriterion("that_day not in", values, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayBetween(Long value1, Long value2) {
            addCriterion("that_day between", value1, value2, "thatDay");
            return (Criteria) this;
        }

        public Criteria andThatDayNotBetween(Long value1, Long value2) {
            addCriterion("that_day not between", value1, value2, "thatDay");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}